package com.swak.sql.parsing.engine;

import com.swak.parser.lexer.LexerEngine;
import com.swak.sql.parsing.context.Statement;
import com.swak.sql.parsing.engine.clause.SelectClauseParser;

/**
 * 符合当前系统的最简单的 SQL 解析器
 * 
 * @author DELL
 */
public class SimpleSqlParser extends AbstractSqlParser {

	public SimpleSqlParser(LexerEngine lexer) {
		super(lexer);
	}

	@Override
	protected Statement parseSelect() {
		Statement statement = new Statement();
		return new SelectClauseParser(statement, lexer).parse();
	}

	@Override
	protected Statement parseInsert() {
		return null;
	}

	@Override
	protected Statement parseUpdate() {
		return null;
	}

	@Override
	protected Statement parseDelete() {
		return null;
	}
}
